package com.xhj.ipersistent.io;

import java.io.InputStream;

/**
 * Resources
 *
 * @author XJks
 * @description 资源加载器
 */
public class Resources {

    /**
     * 根据配置文件的路径，加载配置文件成字节输入流
     *
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path) {
        InputStream stream = Resources.class.getClassLoader().getResourceAsStream(path);
        return stream;
    }
}
